<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Exits a <span style="font-weight:bold;">Do...Loop</span>, <span style="font-weight:bold;">For...Next</span>, a function, or a subroutine.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/>Only valid within a <span class="T1">Do...Loop</span> statement to exit the loop. Program execution continues with the statement that follows the Loop statement. If <span class="T1">Do...Loop</span> statements are nested, the control is transferred to the loop in the next higher level.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>Only valid within a <span class="T1">For...Next</span> loop to exit the loop. Program execution continues with the first statement that follows the <span class="T1">Next</span> statement. In nested statements, the control is transferred to the loop in the next higher level.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>Exits the <span class="T1">Function</span> procedure immediately. Program execution continues with the statement that follows the <span class="T1">Function</span> call.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>Exits the subroutine immediately. Program execution continues with the statement that follows the <span class="T1">Sub</span> call.</p>
<p class="TextInTable"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>The Exit statement does not define the end of a structure, and must not be confused with the End statement.</p>
<p class="PropText"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>Dim sReturn As String</p>
<p class="PropText"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>Dim sListArray(10) as String</p>
<p class="PropText"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>Dim siStep as Single</p>
<p class="PropText"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>For siStep = 0 to 10 <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>REM Fill array with test data</p>
<p class="PropText"><help:paragraphinfo state="U" number="29" xmlns:help="http://openoffice.org/2000/help"/>Function LinSearch( sList(), sItem As String ) as integer</p>
<p class="PropText"><help:paragraphinfo state="U" number="30" xmlns:help="http://openoffice.org/2000/help"/>dim iCount as Integer</p>
<p class="PropText"><help:paragraphinfo state="U" number="31" xmlns:help="http://openoffice.org/2000/help"/>REM LinSearch searches a TextArray:sList() for <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>a TextEntry:</p>
<p class="PropText"><help:paragraphinfo state="U" number="32" xmlns:help="http://openoffice.org/2000/help"/>REM Returns the index of the entry or 0 ( Null)</p>
<p class="PropText"><help:paragraphinfo state="U" number="33" xmlns:help="http://openoffice.org/2000/help"/>for iCount=1 to Ubound( sList() )</p>